package Model::Presence_config_for_bot;

use strict;
use utf8;
use Model::Presence_config;
our @ISA=qw( Model::Presence_config );
use Encode;

sub after_load {
	my $self= shift;
	Encode::_utf8_on( $self->{$_} ) foreach @{ $self->fields };
	$self;
}

my %db_qcount=();

sub log {
	$_[1]=~/^\w+/;
	$db_qcount{lc $&}++;
	#open my $log, '>>/var/www/perl-fw/jb.log';
	#print $log $_[1] . "\n";
}

sub db_count { \%db_qcount }

1;
